package com.grocery.util;

import com.grocery.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class CaneclOrder {
    @Autowired
    IOrderService orderService;
    @Scheduled(fixedRate = 1000*60)
    public void CaneclOrder() {
        orderService.cancelOrder();
    }
}
